package org.redis.cluster.command;

import org.redis.cluster.processor.CommandProcessor;
import org.redis.cluster.redis.RedisCommand;
import org.redis.cluster.redis.transport.RedisReply;
import org.redis.cluster.redis.transport.reply.RedisStatusReply;
import org.redis.cluster.transport.session.Session;

public class PingCommandProcessor implements CommandProcessor {
	
	private final static String COMMAND="PING";

	@Override
	public RedisReply process(RedisCommand command,Session session) {
		return new RedisStatusReply("PONG");
	}

	@Override
	public String getSupportCommand() {
		return COMMAND;
	}

}